package com.ssy.lingxi.scheduler.repository;

import com.ssy.lingxi.scheduler.entity.ScheduleTaskDefinition;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

/**
 * 定时任务定义Jpa仓库
 * @author 万宁
 * @version 2.0.0
 * @date 2021-07-12
 */
@Repository
public interface ScheduleTaskDefinitionRepository extends JpaRepository<ScheduleTaskDefinition, Long>, JpaSpecificationExecutor<ScheduleTaskDefinition> {
    ScheduleTaskDefinition findFirstByTaskName(String taskName);
}
